import request from '@/utils/request'
export const getSearchJyAPI = (q) => {
  return request({
    url: '/v1_0/suggestion',
    params: {
      q
    }
  })
}
/**
 *获取搜索结果
 * @param {string} q 关键词
 * @param {number} page 页码
 * @param {number} per_page 每页数量
 * @returns Promise
 */
export const getSearchResultAPI = (q, page, per_page) => {
  return request({
    url: '/v1_0/search',
    params: {
      q,
      page,
      per_page
    }
  })
}